package com.qdxwx.data.service.company;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.company.Company;

import jakarta.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface CompanyService {

    int insert(Company company);

    int update(Company company);

    int delete(int companyId);

    Company get(int companyId);

    Company getByDomain(String domain);

    Company getByDomain(HttpServletRequest request);

    List<Company> getList(Company company, PageRequest page);

    long count(Company company);

    int updateDisabled(Company company);

    //验证机构是否禁用
    boolean checkDisabled(int companyId);

    //验证机构是否禁用
    boolean checkDisabled(String domain);

    //验证机构是否禁用
    boolean checkDisabled(HttpServletRequest request);
}